#pragma once
#include "GlobalDefine.h"

class CPatrolXmlConfigAdapter
{
public:
	CPatrolXmlConfigAdapter(LPCTSTR strTempName, DWORD dwTemp);
	~CPatrolXmlConfigAdapter(void);
	int GetSize(void);
    DWORD GetAttribute(void);
	bool GetPosData(sPATROLPOS &PosPoint, int nPos);
	void AddData(const sPATROLPOS &PosPoint);
	bool ReadFile(void);
	bool WriteDataToFile(void);
	void ClearList(void);
	bool ReadToList(std::vector<sPATROLPOS> &TempList);
	bool WriteToLacol(std::vector<sPATROLPOS> &TempList);
	std::vector<sPATROLPOS> m_PosList;
	DWORD dwType;
	CString strFileName;
};

BOOL   IsFileExist(LPCTSTR   lpFileName);
